package com.validation.builder;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

import java.util.List;
import java.util.Set;
import java.util.stream.Collectors;
import java.util.stream.Stream;

/**
 * @author Administrator
 */


@Component
public class EncryptionConfig {
    @Value("${encryption.value:}")
    private String ev;
    private final Set<String> od = Stream.of("0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "X").collect(Collectors.toSet());
    private final Set<String> cd = Stream.of("A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O",
            "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z",
            "a", "b", "c", "d", "e", "f", "g", "k", "i", "j", "k", "l", "m", "n", "o",
            "p", "q", "r", "s", "t", "u", "v", "w", "x", "y", "z").collect(Collectors.toSet());

    public String getEv() {
        return ev;
    }

    public void setEv(String ev) {
        this.ev = ev;
    }

    public Set<String> getOd() {
        return od;
    }

    public Set<String> getCd() {
        return cd;
    }
}


